FROM registry.cn-shenzhen.aliyuncs.com/kubedo/almalinux:8
LABEL io.k8s.display-name="almalinux 8 base-image" \
      io.k8s.description="This is a base-image for application." \
      maintainer="kdo@kube-do.cn"

ENV LC_ALL en_US.UTF-8
ENV TZ Asia/Shanghai
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

# change yum repos to mirrors.aliyun.com
COPY repos/*.repo /etc/yum.repos.d/
ADD RPM-GPG-KEY-EPEL-8 /etc/pki/rpm-gpg/
ADD locale.conf /etc/

RUN  ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && dnf install java-21-openjdk.x86_64 fontconfig mkfontscale langpacks-zh_CN ca-certificates dsniff passwd net-tools iproute vim bash-completion lsof iotop htop telnet wget psmisc procps epel-release.noarch  -y \
    && dnf update -y \
    && dnf clean all
